package com.jbm.jbmsupplier.zp.models;

import com.jbm.core.iface.IFileObject;
import com.jbm.jbmsupplier.zp.entity.ChatMsgEntity;
import com.jbm.onehome.iface.CallGroupEntity;
import com.jbm.onehome.iface.ContactEntity;

import java.math.BigDecimal;
import java.util.ArrayList;

/**
 * Created by 家帮忙 on 2017/7/11.
 */

public interface MyServiceInterface {
    void InitData(int tag);
    void NewText(final Integer account_id, String text, long timestamp);//接收文本消息
   void NewFile(final Integer account_id, IFileObject fo, long timestamp);//接受图片，语音
    void NewPay(Integer account_id, String msg, BigDecimal fee, String paytype, long timestamp);//支付使用
    void AddContact(ContactEntity ce);//被添加为好友
    void DropContact(ContactEntity ce);//删除好友
    void SaveData(ArrayList<ChatMsgEntity> arrayList,int tag);//保存数据
    void CGNewText(int cg_id, Integer account_id, String text, long timestamp);//接收群文本
    void CGNewFile(int cg_id, Integer account_id, IFileObject fo, long timestamp);//接收群文件
    void addToUnit(CallGroupEntity cg);//添加群
    void SaveChatMassage(int cg_id,Integer account_id, IFileObject fo,String text, ChatMsgEntity chatmsg,String tagname);//保存好友和群的聊天记录





}
